/*
 * Copyright (c) 2005-2007 feyaSoft Corp. All Rights Reserved.
 */
package com.feyaSoft.plugin.util;

/**
 * Util to check the object
 * 
 * @author Fenqiang Zhuang
 * @created Jan 1, 2005
 */
public class ObjectCheck {

	/**
	 * Check whether the input String is empty or not, if so return true.
	 * 
	 * @param aString
	 * @return
	 */
	public static boolean isEmptyString(String aString) {

		if (aString == null) {
			return true;
		}

		if (aString.trim().length() == 0) {
			return true;
		}

		return false;
	}

	/**
	 * Check whether in is integer now...
	 * 
	 * @param in
	 * @return
	 */
	public static boolean isInteger(String in) {
		try {
			Integer.parseInt(in);
		} catch (Exception e) {
			return false;
		}

		return true;
	}

}
